﻿<UserControl x:Class="EmployeeTracker.View.EmailDetailView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Width="300">
    
    <UserControl.Resources>
        <ResourceDictionary Source="..\CompactFormStyles.xaml" />
    </UserControl.Resources>

    <Grid>
        <Border Style="{StaticResource DetailBorder}">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="65" />
                </Grid.ColumnDefinitions>

                <TextBlock Grid.Column="0" Text="Email:" />
                <TextBox Grid.Column="1" Width="155" Text="{Binding Path=Address}" />
                <TextBlock Grid.Column="2" Text="Usage:" />
                <ComboBox Grid.Column="3" Width="60" ItemsSource="{Binding Path=ValidUsageValues}" SelectedValue="{Binding Path=Usage}" SelectedValuePath="." DisplayMemberPath="." />
            </Grid>
        </Border>
    </Grid>
</UserControl>
